package com.situ.mall.controller.back;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.situ.mall.common.ServerResponse;
import com.situ.mall.entity.SysLog;
import com.situ.mall.service.ISysLogService;

@Controller
@RequestMapping("/sysLog")
public class SysLogController {

    @Autowired
    private ISysLogService sysLogService;

	@RequestMapping(value="/pageList")
	@ResponseBody
	public ServerResponse pageList() {
		List<SysLog> list = sysLogService.findAll();
		ServerResponse serverResponse = ServerResponse.createSuccess("成功", list);
		return serverResponse;
	}
	
	@RequestMapping(value ="/getSysLogListPage")
	public String getSysLogPage() {
		return "sys_log_list";
	}
}
